/**
 * @Title: index
 * @Author  dudalei
 * @Package
 * @Date  2025/5/28 21:31
 * @description: 这里导出组件
 */

import type { App } from 'vue'
import ExampleDom from './components/ExampleDom.vue'
// import ExampleDom1 from '../src/components/ExampleDom1.vue'; // 如果有多个组件一起打包

const components = [ExampleDom]
// const components = [ExampleDom, ExampleDom1]; // 如果有多个组件一起打包

export { ExampleDom } // 按需引入
// export { ExampleDom, ExampleDom1 }; // 按需引入，如果有多个组件一起打包就可以一起写

const install = (app: App) => {
  components.forEach((component) => {
    app.component(component.name as string, component)
  })
}
export default { install }
